From: Keir Fraser Date: Wed, 2 Sep 2009 15:15:05 +0000 (+0100) Subject: libxenguest: Remove unused static inline function is_loadable_phdr() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13390 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=e997adf2cef6b5fca2d67a8d0651b71f02a05847;p=xen.git libxenguest: Remove unused static inline function is_loadable_phdr() Signed-off-by: Christoph Egger --- diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index e20f5ac862..c460d97e17 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -342,12 +342,6 @@ static int xc_hvm_build_internal(int xc_handle, return setup_guest(xc_handle, domid, memsize, target, image, image_size); } -static inline int is_loadable_phdr(Elf32_Phdr *phdr) -{ - return ((phdr->p_type == PT_LOAD) && - ((phdr->p_flags & (PF_W|PF_X)) != 0)); -} - /* xc_hvm_build: * Create a domain for a virtualized Linux, using files/filenames. */